import 'package:flutter/material.dart';
import '../shower.dart';

class FullScreen extends StatefulWidget {
  final String materialPath;
  final List blocks;
  FullScreen({Key key, this.materialPath, this.blocks});
  @override
  _FullScreenState createState() => new _FullScreenState();
}

class _FullScreenState extends State<FullScreen> {
  @override
  Widget build(BuildContext context) {
    print(widget.blocks);
    return Flex(
      direction: Axis.vertical,
      children: <Widget>[
        Expanded(
          flex: 1,
          child: Shower(dirPath: '${widget.materialPath}/0', showList: widget.blocks[0]['files']),
        )
      ],
    );
  }
}